using System;

namespace Me.Prettyprint.Hector.Api.Locking
{
    /// <summary>
    /// A Lock whose path refers to a common path/id clients compete to acquire. For example:
    /// Lock("/Users/patricioe")
    /// </summary>
	public interface HLock
	{
		string Path
		{
			get;
			set;
		}
		string LockId
		{
			get;
			set;
		}
		HLockObserver Observer
		{
			get;
			set;
		}
        bool IsAcquired
        {
            get;
        }
	}
}